//
//  HomeMiddleMallTableViewCell.m
//  CYWFrame
//
//  Created by 于顺燊 on 2018/8/14.
//  Copyright © 2018年 Macx. All rights reserved.
//

#import "HomeMiddleMallTableViewCell.h"

@implementation HomeMiddleMallTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(SimpleGoodsInfo *)model{
	if (_model != model) {
		_model = model;
	}
	self.title.text = model.title;
	self.price.text = [NSString stringWithFormat:@"原价:￥%.2lf", [model.price floatValue]/100];
	self.mall_price.text = [NSString stringWithFormat:@"现价:￥%.2lf", [model.mall_price floatValue]/100];
	self.comment_count.text = [NSString stringWithFormat:@"%@好评", model.comments_count];
	[self.image sd_setImageWithURL:[NSURL URLWithString:model.photo]];
}

@end
